import request from '@/utils/request'

// 社保，公积金数据修改
export function updateMoney(data) {
  return request({
    url: '/socialSecurity/update',
    method: 'POST',
    data
  })
}

// 社保、公积金数据删除
export function deleteMoney(data) {
  return request({
    url: '/socialSecurity/delete',
    method: 'POST',
    data
  })
}

// 查询社保、公积金列表
export function getList(params) {
  return request({
    url: '/socialSecurity/list',
    method: 'POST',
    params
  })
}

// 社保、公积金模块添加
export function addMoney(data) {
  return request({
    url: '/socialSecurity/add',
    method: 'post',
    data
  })
}

// 查询团队
export function selectTeam(params) {
  return request({
    url: '/employeePay/team',
    method: 'POST',
    params
  })
}

// 查询单条社保、公积金数据
export function selectMoney(params) {
  return request({
    url: '/socialSecurity/load',
    method: 'POST',
    params
  })
}

// 社保列表
export function securityList(params) {
  return request({
    url: '/socialSecurity/paySocialSecurity',
    method: 'POST',
    params
  })
}

// 工资列表
export function moneyList(params) {
  return request({
    url: '/monthlyWages/selectPage',
    method: 'POST',
    params
  })
}

// 社保费用分页查询
export function getSocialSecurityFee(params) {
  return request({
    url: '/SocialSecurityFee/selectPage',
    method: 'POST',
    params
  })
}

// 社保费用单条查询
export function selectSocialSecurityFee(params) {
  return request({
    url: '/SocialSecurityFee/findId',
    method: 'POST',
    params
  })
}

// 社保费用修改
export function updateFee(data) {
  return request({
    url: '/SocialSecurityFee/updateFee',
    method: 'POST',
    data
  })
}

// 结算本次参保费用
export function updateSocialSecurityFee(params) {
  return request({
    url: '/SocialSecurityFee/update',
    method: 'POST',
    params
  })
}

// 生成下次缴费名单
export function addSocialSecurityFee(params) {
  return request({
    url: '/SocialSecurityFee/add',
    method: 'POST',
    params
  })
}

